<!DOCTYPE html>
<html>

<head>
    <include file="public@head" title="链接管理"/>
</head>

<body class="layui-layout-admin">
<include file="public@header"/>
<include file="public@side"/>

<div class="layui-body">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a href="{:url('admin/index/index')}">主页</a>
        <a>系统设置</a>
        <a href="{:url('admin/link/index')}">链接管理</a>
        <a><cite>添加友链</cite></a>
    </div>
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-card-header">
                添加链接
            </div>
            <div class="layui-card-body layui-row">
                <form action="{:url('admin/link/add')}" method="post" class="layui-form layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">名称<span class="form-required">*</span></label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" name="name" lay-verify="required" lay-verType="tips"
                                   placeholder="请输入链接名称">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">链接地址<span class="form-required">*</span></label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" name="url" lay-verify="required|url"
                                   lay-verType="tips" placeholder="请输入链接地址http://开头">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="input-target" class="layui-form-label">打开方式</label>
                        <div class="layui-input-block">
                            <input type="radio" name="target" value="_blank" title="新标签页打开" checked="checked">
                            <input type="radio" name="target" value="_self" title="本窗口打开">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">描述</label>
                        <div class="layui-input-block">
                            <textarea class="layui-textarea" name="description" placeholder="您可以输入简短的描述"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button type="submit" class="layui-btn" lay-submit lay-filter="general">添加</button>
                            <a class="layui-btn layui-btn-primary" href="javascript:history.back(-1);">返回</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<include file="public@scripts"/>
</body>

</html>
